package com.lujianfei.netease_android_mvvm.main;

import com.lujianfei.netease_android_mvvm.entity.DataBean;

import java.util.List;

import androidx.appcompat.app.AppCompatActivity;

public interface IMainMvvm {
    interface View {
        void setMiddleTitle(String title);

        void update(List<DataBean> dataListList);

        void setEditMode(boolean editMode);

        void setSelectAll(boolean selectAll);

        void updateSelectAll(boolean selectAll);

        boolean isEditMode();

        void notifyItemRangeChanged(int position, int count);

        AppCompatActivity getContext();

        void notifyItemRemoved(int position);

        void notifyItemChanged(int position);

        void showToast(String s);
    }
    interface  ViewModel {
        void load();

        void setSelectAll(boolean selectAll);

        void clickItem(DataBean dataList);

        void clickDelete();

    }
}
